<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/5/7
  Time: 20:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>3-16</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    String s;
    s=request.getParameter("buy");
    byte[]b=s.getBytes("ISO-8859-1");
    s=new String(b);
    session.setAttribute("goods",s);
    String 顾客=(String)session.getAttribute("customer");
    String 姓名=(String)session.getAttribute("name");
    String 商品=(String)session.getAttribute("goods");
%>
<p>结账处</p>
<p><%=顾客%>的姓名是：<%=姓名%></p>
<p>拟购买的商品是：<%=商品%></p>
</body>
</html>
